<template>
    <div>
      <check-header></check-header>
      <p-r-header v-if="level === PR"></p-r-header>
      <list v-if="level === PI"></list>
    </div>
</template>

<script>
import Cookies from 'js-cookie'
import CheckHeader from './components/header'
import List from './components/list'
import PRHeader from './components/PRHeader'
// import wx from 'weixin-js-sdk'
export default {
  name: 'index',
  components: {List, CheckHeader, PRHeader},
  data () {
    return {
      level: parseInt(Cookies.get('level'))
    }
  }
}
</script>

<style scoped>

</style>
